home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsISupportsArray.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  19KB  |  380 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISupportsArray.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISupportsArray_h__
  6. #define __gen_nsISupportsArray_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsICollection_h__
  14. #include "nsICollection.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIBidirectionalEnumerator;
  22.  
  23. #define NS_SUPPORTSARRAY_CID                         \
  24. { /* bda17d50-0d6b-11d3-9331-00104ba0fd40 */         \
  25.     0xbda17d50,                                      \
  26.     0x0d6b,                                          \
  27.     0x11d3,                                          \
  28.     {0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  29. }
  30. #define NS_SUPPORTSARRAY_CONTRACTID "@mozilla.org/supports-array;1"
  31. #define NS_SUPPORTSARRAY_CLASSNAME "Supports Array"
  32.  
  33. // Enumerator callback function. Return PR_FALSE to stop
  34. typedef PRBool (*nsISupportsArrayEnumFunc)(nsISupports* aElement, void *aData);
  35.  
  36.  
  37. /* starting interface:    nsISupportsArray */
  38. #define NS_ISUPPORTSARRAY_IID_STR "791eafa0-b9e6-11d1-8031-006008159b5a"
  39.  
  40. #define NS_ISUPPORTSARRAY_IID \
  41.   {0x791eafa0, 0xb9e6, 0x11d1, \
  42.     { 0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a }}
  43.  
  44. class NS_NO_VTABLE nsISupportsArray : public nsICollection {
  45.  public: 
  46.  
  47.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSARRAY_IID)
  48.  
  49.   /* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
  50.   NS_IMETHOD_(PRBool) Equals(const nsISupportsArray *other) = 0;
  51.  
  52.   /* [notxpcom] nsISupports ElementAt (in unsigned long aIndex); */
  53.   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) = 0;
  54.  
  55.   /* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
  56.   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) = 0;
  57.  
  58.   /* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
  59.   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) = 0;
  60.  
  61.   /* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
  62.   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) = 0;
  63.  
  64.   /* long GetIndexOf (in nsISupports aPossibleElement); */
  65.   NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) = 0;
  66.  
  67.   /* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
  68.   NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval) = 0;
  69.  
  70.   /* long GetLastIndexOf (in nsISupports aPossibleElement); */
  71.   NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) = 0;
  72.  
  73.   /* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
  74.   NS_IMETHOD_(PRBool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) = 0;
  75.  
  76.   /* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
  77.   NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) = 0;
  78.  
  79.   /* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
  80.   NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex) = 0;
  81.  
  82.   /* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
  83.   NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports *aElement) = 0;
  84.  
  85.   /* void DeleteLastElement (in nsISupports aElement); */
  86.   NS_IMETHOD DeleteLastElement(nsISupports *aElement) = 0;
  87.  
  88.   /* void DeleteElementAt (in unsigned long aIndex); */
  89.   NS_IMETHOD DeleteElementAt(PRUint32 aIndex) = 0;
  90.  
  91.   /* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
  92.   NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray *aElements) = 0;
  93.  
  94.   /* void Compact (); */
  95.   NS_IMETHOD Compact(void) = 0;
  96.  
  97.   /* [noscript, notxpcom] boolean EnumerateForwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
  98.   NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData) = 0;
  99.  
  100.   /* [noscript, notxpcom] boolean EnumerateBackwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
  101.   NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData) = 0;
  102.  
  103.   /* nsISupportsArray clone (); */
  104.   NS_IMETHOD Clone(nsISupportsArray **_retval) = 0;
  105.  
  106.   /* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
  107.   NS_IMETHOD_(PRBool) MoveElement(PRInt32 aFrom, PRInt32 aTo) = 0;
  108.  
  109.   /* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
  110.   NS_IMETHOD_(PRBool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) = 0;
  111.  
  112.   /* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
  113.   NS_IMETHOD_(PRBool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) = 0;
  114.  
  115.   /* [notxpcom] boolean SizeTo (in long aSize); */
  116.   NS_IMETHOD_(PRBool) SizeTo(PRInt32 aSize) = 0;
  117.  
  118. };
  119.  
  120. /* Use this macro when declaring classes that implement this interface. */
  121. #define NS_DECL_NSISUPPORTSARRAY \
  122.   NS_IMETHOD_(PRBool) Equals(const nsISupportsArray *other); \
  123.   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex); \
  124.   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement); \
  125.   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex); \
  126.   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement); \
  127.   NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval); \
  128.   NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval); \
  129.   NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval); \
  130.   NS_IMETHOD_(PRBool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex); \
  131.   NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex); \
  132.   NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex); \
  133.   NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports *aElement); \
  134.   NS_IMETHOD DeleteLastElement(nsISupports *aElement); \
  135.   NS_IMETHOD DeleteElementAt(PRUint32 aIndex); \
  136.   NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray *aElements); \
  137.   NS_IMETHOD Compact(void); \
  138.   NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData); \
  139.   NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData); \
  140.   NS_IMETHOD Clone(nsISupportsArray **_retval); \
  141.   NS_IMETHOD_(PRBool) MoveElement(PRInt32 aFrom, PRInt32 aTo); \
  142.   NS_IMETHOD_(PRBool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex); \
  143.   NS_IMETHOD_(PRBool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount); \
  144.   NS_IMETHOD_(PRBool) SizeTo(PRInt32 aSize); 
  145.  
  146. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  147. #define NS_FORWARD_NSISUPPORTSARRAY(_to) \
  148.   NS_IMETHOD_(PRBool) Equals(const nsISupportsArray *other) { return _to Equals(other); } \
  149.   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) { return _to ElementAt(aIndex); } \
  150.   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) { return _to IndexOf(aPossibleElement); } \
  151.   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) { return _to IndexOfStartingAt(aPossibleElement, aStartIndex); } \
  152.   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) { return _to LastIndexOf(aPossibleElement); } \
  153.   NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) { return _to GetIndexOf(aPossibleElement, _retval); } \
  154.   NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval) { return _to GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
  155.   NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) { return _to GetLastIndexOf(aPossibleElement, _retval); } \
  156.   NS_IMETHOD_(PRBool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) { return _to InsertElementAt(aElement, aIndex); } \
  157.   NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) { return _to ReplaceElementAt(aElement, aIndex); } \
  158.   NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex) { return _to RemoveElementAt(aIndex); } \
  159.   NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports *aElement) { return _to RemoveLastElement(aElement); } \
  160.   NS_IMETHOD DeleteLastElement(nsISupports *aElement) { return _to DeleteLastElement(aElement); } \
  161.   NS_IMETHOD DeleteElementAt(PRUint32 aIndex) { return _to DeleteElementAt(aIndex); } \
  162.   NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray *aElements) { return _to AppendElements(aElements); } \
  163.   NS_IMETHOD Compact(void) { return _to Compact(); } \
  164.   NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData) { return _to EnumerateForwards(aFunc, aData); } \
  165.   NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData) { return _to EnumerateBackwards(aFunc, aData); } \
  166.   NS_IMETHOD Clone(nsISupportsArray **_retval) { return _to Clone(_retval); } \
  167.   NS_IMETHOD_(PRBool) MoveElement(PRInt32 aFrom, PRInt32 aTo) { return _to MoveElement(aFrom, aTo); } \
  168.   NS_IMETHOD_(PRBool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) { return _to InsertElementsAt(aOther, aIndex); } \
  169.   NS_IMETHOD_(PRBool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) { return _to RemoveElementsAt(aIndex, aCount); } \
  170.   NS_IMETHOD_(PRBool) SizeTo(PRInt32 aSize) { return _to SizeTo(aSize); } 
  171.  
  172. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  173. #define NS_FORWARD_SAFE_NSISUPPORTSARRAY(_to) \
  174.   NS_IMETHOD_(PRBool) Equals(const nsISupportsArray *other) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other); } \
  175.   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementAt(aIndex); } \
  176.   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(aPossibleElement); } \
  177.   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOfStartingAt(aPossibleElement, aStartIndex); } \
  178.   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->LastIndexOf(aPossibleElement); } \
  179.   NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOf(aPossibleElement, _retval); } \
  180.   NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
  181.   NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastIndexOf(aPossibleElement, _retval); } \
  182.   NS_IMETHOD_(PRBool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(aElement, aIndex); } \
  183.   NS_IMETHOD_(PRBool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceElementAt(aElement, aIndex); } \
  184.   NS_IMETHOD_(PRBool) RemoveElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(aIndex); } \
  185.   NS_IMETHOD_(PRBool) RemoveLastElement(const nsISupports *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveLastElement(aElement); } \
  186.   NS_IMETHOD DeleteLastElement(nsISupports *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteLastElement(aElement); } \
  187.   NS_IMETHOD DeleteElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteElementAt(aIndex); } \
  188.   NS_IMETHOD_(PRBool) AppendElements(nsISupportsArray *aElements) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElements(aElements); } \
  189.   NS_IMETHOD Compact(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Compact(); } \
  190.   NS_IMETHOD_(PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateForwards(aFunc, aData); } \
  191.   NS_IMETHOD_(PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateBackwards(aFunc, aData); } \
  192.   NS_IMETHOD Clone(nsISupportsArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  193.   NS_IMETHOD_(PRBool) MoveElement(PRInt32 aFrom, PRInt32 aTo) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveElement(aFrom, aTo); } \
  194.   NS_IMETHOD_(PRBool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementsAt(aOther, aIndex); } \
  195.   NS_IMETHOD_(PRBool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementsAt(aIndex, aCount); } \
  196.   NS_IMETHOD_(PRBool) SizeTo(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeTo(aSize); } 
  197.  
  198. #if 0
  199. /* Use the code below as a template for the implementation class for this interface. */
  200.  
  201. /* Header file */
  202. class nsSupportsArray : public nsISupportsArray
  203. {
  204. public:
  205.   NS_DECL_ISUPPORTS
  206.   NS_DECL_NSISUPPORTSARRAY
  207.  
  208.   nsSupportsArray();
  209.  
  210. private:
  211.   ~nsSupportsArray();
  212.  
  213. protected:
  214.   /* additional members */
  215. };
  216.  
  217. /* Implementation file */
  218. NS_IMPL_ISUPPORTS1(nsSupportsArray, nsISupportsArray)
  219.  
  220. nsSupportsArray::nsSupportsArray()
  221. {
  222.   /* member initializers and constructor code */
  223. }
  224.  
  225. nsSupportsArray::~nsSupportsArray()
  226. {
  227.   /* destructor code */
  228. }
  229.  
  230. /* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
  231. NS_IMETHODIMP_(PRBool) nsSupportsArray::Equals(const nsISupportsArray *other)
  232. {
  233.     return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235.  
  236. /* [notxpcom] nsISupports ElementAt (in unsigned long aIndex); */
  237. NS_IMETHODIMP_(nsISupports *) nsSupportsArray::ElementAt(PRUint32 aIndex)
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
  243. NS_IMETHODIMP_(PRInt32) nsSupportsArray::IndexOf(const nsISupports *aPossibleElement)
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247.  
  248. /* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
  249. NS_IMETHODIMP_(PRInt32) nsSupportsArray::IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253.  
  254. /* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
  255. NS_IMETHODIMP_(PRInt32) nsSupportsArray::LastIndexOf(const nsISupports *aPossibleElement)
  256. {
  257.     return NS_ERROR_NOT_IMPLEMENTED;
  258. }
  259.  
  260. /* long GetIndexOf (in nsISupports aPossibleElement); */
  261. NS_IMETHODIMP nsSupportsArray::GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval)
  262. {
  263.     return NS_ERROR_NOT_IMPLEMENTED;
  264. }
  265.  
  266. /* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
  267. NS_IMETHODIMP nsSupportsArray::GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval)
  268. {
  269.     return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271.  
  272. /* long GetLastIndexOf (in nsISupports aPossibleElement); */
  273. NS_IMETHODIMP nsSupportsArray::GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval)
  274. {
  275.     return NS_ERROR_NOT_IMPLEMENTED;
  276. }
  277.  
  278. /* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
  279. NS_IMETHODIMP_(PRBool) nsSupportsArray::InsertElementAt(nsISupports *aElement, PRUint32 aIndex)
  280. {
  281.     return NS_ERROR_NOT_IMPLEMENTED;
  282. }
  283.  
  284. /* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
  285. NS_IMETHODIMP_(PRBool) nsSupportsArray::ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex)
  286. {
  287.     return NS_ERROR_NOT_IMPLEMENTED;
  288. }
  289.  
  290. /* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
  291. NS_IMETHODIMP_(PRBool) nsSupportsArray::RemoveElementAt(PRUint32 aIndex)
  292. {
  293.     return NS_ERROR_NOT_IMPLEMENTED;
  294. }
  295.  
  296. /* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
  297. NS_IMETHODIMP_(PRBool) nsSupportsArray::RemoveLastElement(const nsISupports *aElement)
  298. {
  299.     return NS_ERROR_NOT_IMPLEMENTED;
  300. }
  301.  
  302. /* void DeleteLastElement (in nsISupports aElement); */
  303. NS_IMETHODIMP nsSupportsArray::DeleteLastElement(nsISupports *aElement)
  304. {
  305.     return NS_ERROR_NOT_IMPLEMENTED;
  306. }
  307.  
  308. /* void DeleteElementAt (in unsigned long aIndex); */
  309. NS_IMETHODIMP nsSupportsArray::DeleteElementAt(PRUint32 aIndex)
  310. {
  311.     return NS_ERROR_NOT_IMPLEMENTED;
  312. }
  313.  
  314. /* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
  315. NS_IMETHODIMP_(PRBool) nsSupportsArray::AppendElements(nsISupportsArray *aElements)
  316. {
  317.     return NS_ERROR_NOT_IMPLEMENTED;
  318. }
  319.  
  320. /* void Compact (); */
  321. NS_IMETHODIMP nsSupportsArray::Compact()
  322. {
  323.     return NS_ERROR_NOT_IMPLEMENTED;
  324. }
  325.  
  326. /* [noscript, notxpcom] boolean EnumerateForwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
  327. NS_IMETHODIMP_(PRBool) nsSupportsArray::EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData)
  328. {
  329.     return NS_ERROR_NOT_IMPLEMENTED;
  330. }
  331.  
  332. /* [noscript, notxpcom] boolean EnumerateBackwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
  333. NS_IMETHODIMP_(PRBool) nsSupportsArray::EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData)
  334. {
  335.     return NS_ERROR_NOT_IMPLEMENTED;
  336. }
  337.  
  338. /* nsISupportsArray clone (); */
  339. NS_IMETHODIMP nsSupportsArray::Clone(nsISupportsArray **_retval)
  340. {
  341.     return NS_ERROR_NOT_IMPLEMENTED;
  342. }
  343.  
  344. /* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
  345. NS_IMETHODIMP_(PRBool) nsSupportsArray::MoveElement(PRInt32 aFrom, PRInt32 aTo)
  346. {
  347.     return NS_ERROR_NOT_IMPLEMENTED;
  348. }
  349.  
  350. /* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
  351. NS_IMETHODIMP_(PRBool) nsSupportsArray::InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex)
  352. {
  353.     return NS_ERROR_NOT_IMPLEMENTED;
  354. }
  355.  
  356. /* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
  357. NS_IMETHODIMP_(PRBool) nsSupportsArray::RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount)
  358. {
  359.     return NS_ERROR_NOT_IMPLEMENTED;
  360. }
  361.  
  362. /* [notxpcom] boolean SizeTo (in long aSize); */
  363. NS_IMETHODIMP_(PRBool) nsSupportsArray::SizeTo(PRInt32 aSize)
  364. {
  365.     return NS_ERROR_NOT_IMPLEMENTED;
  366. }
  367.  
  368. /* End of implementation class template. */
  369. #endif
  370.  
  371. // Construct and return a default implementation of nsISupportsArray:
  372. extern NS_COM nsresult
  373. NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult);
  374. // Construct and return a default implementation of an enumerator for nsISupportsArrays:
  375. extern NS_COM nsresult
  376. NS_NewISupportsArrayEnumerator(nsISupportsArray* array,
  377.                                nsIBidirectionalEnumerator* *aInstancePtrResult);
  378.  
  379. #endif /* __gen_nsISupportsArray_h__ */
  380.